package com.example.service.impl;

import com.example.entity.UserInfo;
import com.example.mapper.UserInfoMapper;
import com.example.service.UserInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.vo.Result;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.awt.geom.RectangularShape;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author chengtaoxie
 * @since 2023-07-21
 */
@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo> implements UserInfoService {

    @Resource
    private UserInfoMapper userInfoMapper;

    /**
     * 用户注册
     * @param userInfo
     * @return
     */
    public Result register(UserInfo userInfo){
        userInfoMapper.insert(userInfo);
        return Result.ok();
    }

}
